<script setup>
import ZyLoading from './components/common/ZyLoading.vue'
import { onMounted } from 'vue'
import lazyLoadImages from './libs/util.lazyLoad'
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
dayjs.locale('zh-cn');
import { useRoute } from 'vue-router'
const route = useRoute()

onMounted(() => {
  // 懒加载图片
  lazyLoadImages()
})

const locale = zhCN

</script>

<template>
  <a-config-provider :locale="locale">
    <RouterView />
  </a-config-provider>

  <ZyLoading />
</template>

